package com.martin.dms.factories;

import java.util.Date;

import com.martin.dms.model.Delivery;
import com.martin.dms.model.Item;
import com.martin.dms.model.Supplier;

/**
 * Factory service for the Delivery entity object.
 * 
 * @author mtsvetkov
 */
public interface DeliveryFactory {

    /**
     * Creates a new Delivery object.
     * 
     * @param supplier - the supplier for the delivery.
     * @param item - the delivered item.
     * @param amount - the number of delivered items.
     * @param date - the date of the delivery.
     * @return the new Delivery.
     */
    public Delivery create(Supplier supplier, Item item, int amount, Date date);
}
